package com.ruowei.common.error.exception;

import com.ruowei.common.error.ErrorConstants;
import org.zalando.problem.AbstractThrowableProblem;
import org.zalando.problem.Status;

public class CommonException extends AbstractThrowableProblem {
    public CommonException(String errorMessage) {
        this(errorMessage, Status.BAD_REQUEST);
    }

    public CommonException(String errorMessage, Status status) {
        super(ErrorConstants.DEFAULT_TYPE, errorMessage, status, errorMessage);
    }
}
